package com.jianhua.appmarket.module.service.system;

import com.jianhua.appmarket.common.base.BaseService;
import com.jianhua.appmarket.module.entity.system.Org;
import com.jianhua.appmarket.module.entity.system.User;
import com.jianhua.appmarket.module.model.system.OrgParam;
import com.jianhua.appmarket.module.model.system.OrgVO;
import com.jianhua.appmarket.module.model.system.UserVO;

import java.util.List;

public interface IOrgService extends BaseService<Org> {

    List<OrgVO> listOrgsTree(OrgParam param, User user);

    List<OrgVO> listBranchByParentId(Long parentId, User user);

    Boolean addOrEditOrg(Org org, UserVO user);

    Boolean editOrg(Org org);

    Boolean deleteOrg(Long orgId);


}
